<?php
/**
 * @version      BOSSCMS-Free
 * @trademark    BOSSCMS
 * @copyright    Copyright © by BOSSCMS-Free (https://www.bosscms.net/) 保留所有权利
 * @license      https://gitee.com/Greenpeas/BOSSCMS/license/ 和 https://www.bosscms.net/freelicense/
 * @link         https://www.bosscms.net/
 * @author       温州软界网络技术有限公司
**/
defined('IS_OK') or exit('Access Forbidden');
?>
<?php load::into('head'); ?>
<form action="<?php echo url::mpf('link','link','add'); ?>" method="post" enctype="multipart/form-data">
<?php global $aE; $aE=isset($data)?$data:null; ?>
<section class="main form">
  <aside>
    <div>
      <h2>
        <strong>友链设置</strong>
      </h2>
	  <dl>
		<dt>
		  <strong>所属栏目</strong>
		</dt>
		<dd>
		  <?php echo form::select('items',aE('items'),'["88888"]',$data['subarr'],array('width'=>'60%','multiple')); ?>
          <cite>选择友情链接指定的所属栏目</cite>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>标题名称</strong>
		</dt>
		<dd>
		  <?php echo form::input('name',aE('name'),null,'text',array('width4','placeholder'=>'请输入标题名称')); ?>
		</dd>
	  </dl>
      <dl>
		<dt>
		  <strong>友链类型</strong>
		</dt>
		<dd>
		  <?php echo form::radio('type',aE('type'),0,$G['option']['link'],array('no')); ?>
          <cite>选择“文本”网页将显示文字链接，选择“图片”网页将显示图片链接</cite>
		</dd>
      </dl>
	  <dl image>
		<dt>
		  <strong>LOGO图片</strong>
		</dt>
		<dd>
		  <?php echo form::textarea('image',aE('image'),null,array('image')); ?>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>链接地址</strong>
		</dt>
		<dd>
		  <?php echo form::input('link',aE('link'),null,'text',array('width8','placeholder'=>'请输入链接地址')); ?>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>nofollow权重</strong>
		</dt>
		<dd>
		  <?php echo form::radio('nofollow',aE('nofollow'),0,$G['option']['open']); ?>
		  <cite>开启rel='nofollow'后，友情链接不允许权重传递</cite>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>目标窗口</strong>
		</dt>
		<dd>
		  <?php echo form::radio('target',aE('target'),0,$G['option']['target'],array('no')); ?>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>列表排序</strong>
		</dt>
		<dd>
		  <?php echo form::input('sort',aE('sort'),0,'text',array('width1','placeholder'=>'请输入列表排序')); ?>
		</dd>
	  </dl>
	  <dl>
		<dt>
		  <strong>是否显示</strong>
		</dt>
		<dd>
		  <?php echo form::radio('display',aE('display'),1,$G['option']['display']); ?>
		</dd>
	  </dl>
    </div>
  </aside>
</section>

<section class="refer">
  <button class="button ok" type="submit">
    <em class="fa fa-floppy-o"></em>
    <font>保存</font>
  </button>
</section>  
</form>
<?php load::into('foot'); ?>